{% extends "../../bocore/admin/master.html" %}
{% block title %}{% end %}
{% block header%}
{% end %}
{% block sidebar_header %}{% end %}
{% block content_header_title%}对象权限测试{% end %}
{% block content_header_breadcrumb%}{% end %}
{% block content_body%}
<button type="button" id="object-perms-btn">测试</button>
<div id="console-panel" class="row">

</div>
{% module BoListTable("bo_listtable_demo", provider) %}
{% end %}
{% block footer%}
<SCRIPT type="text/javascript">
function my_custom_col_render(field_name, data, type, row){
    return data;
}
$(function(){
    $("#object-perms-btn").click(function(){
        $.get("{{api('user_object_permissions_demo')}}", {}, function(rsp){
            console.log(rsp);
        }, "json");
    });
});

</SCRIPT>
{% end %}